class AddItemRationVotesFlag < ActiveRecord::Migration
  def self.up
    rename_column :item_rating_votes, :stauts, :status
     ActiveRecord::Base.connection.execute("ALTER TABLE item_rating_votes ADD COLUMN flag tinyint(4) after status")
  end

  def self.down
    rename_column :item_rating_votes, :status, :stauts
    remove_column :item_rating_votes, :flag, :default => 0
  end
end
